package cn.tedu.egweibo9.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
public class WeiboDTO {
    @ApiModelProperty(value = "微博内容",required = true,dataType = "string")
    @Size(min=5, max = 100, message = "内容长度为5-100之间")
    @NotBlank(message = "内容不能为空白")
    private String content;
}
